import 'package:flutter_base_app/generated/json/base/json_field.dart';
import 'dart:convert';
import '../generated/json/test_data.g.dart';

@JsonSerializable()
class TestData {
  String did = '';
  String sid = '';
  String title = '';
  String summary = '';
  String newsSrc = '';
  String pubTime = '';

  TestData();

  factory TestData.fromJson(Map<String, dynamic> json) =>
      $TestDataFromJson(json);

  Map<String, dynamic> toJson() => $TestDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
